package zlx.mapper;

import org.apache.ibatis.annotations.Param;
import zlx.pojo.Book;
import zlx.pojo.Page;

import java.util.List;

public interface BookMapper {
    //查书
    public List<Book> selectAllBook(@Param("start") Integer start,@Param("end") Integer end);
    //查图书总记录数
    public Integer  countAllBook();
    //增加图书
    public  void addBook(Book book);
    //根据id删除图书
    public void deleteBookById(Integer id);
    //根据id查找图书
    public Book queryBookById(Integer id);
    //根据id修改图书
    public void updateBookById(Book book);
}
